package weibo4j.examples.user;

import weibo4j.Users;
import weibo4j.examples.WeiboContants;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.WeiboException;
/*
 * 显示用户信息
 * 参数列表：
 * token
 * 个性域名号，这里查询 http://account.weibo.com/set/domain
 */
public class showUserByDomain {

	public static void main(String[] args) {
		String access_token = WeiboContants.access_token;
		String uid =WeiboContants.uid;
		String domain =WeiboContants.domain;
		Users um = new Users();
		um.client.setToken(access_token);
		try {
			User user = um.showUserByDomain(domain);
			Log.logInfo(user.toString());
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}

}
